<template>
    <div>
        <van-search v-model="value" placeholder="请输入搜索关键词" @click="search" />
    </div>
</template>

<script setup>
    import { ref } from 'vue';
    const value = ref('');
    import { useRouter} from 'vue-router';
    const router=new useRouter()
    const search=()=>{
        router.push('/search')
        
    }

</script>

<style lang="scss" scoped></style>